<!--<fieldset class="layui-elem-field layui-field-title" id="content1" style="margin-top: 30px;">-->
<!--    <legend>基本信息</legend>-->
<!--</fieldset>-->
<blockquote class="layui-elem-quote">基本信息多数是对外使用的资料，请细心填写。</blockquote>
<br/>



<li class="layui-form-item name">
    <label class="layui-form-label">名称：</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" id="name" name="detail_name"  >
    </div>
    <em class="explain">(<u
                style="color:red">*必填项目</u>,
        填写标题)
    </em>
</li>

<li class="layui-form-item en_name">
    <label class="layui-form-label">英文名称：</label>
    <div class="layui-input-block"> <input type="text" class="layui-input" name="detail_en_name" size="20" ></div>

</li>

<li class="layui-form-item short_desc">
    <label class="layui-form-label">短简介：</label>
    <div class="layui-input-block"><input type="text" class="layui-input" name="detail_short_desc" size="20" ></div>
    <em class="explain">(填写短简介)</em>
</li>

<li class="layui-form-item model">
    <label class="layui-form-label">型号：</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input"  class="layui-input"  name="detail_model" size="20" >
    </div>
    <em class="explain">填写您自己设置的型号，型号不作排序</em>
</li>


<?php
$sql = "select count(*) as term_count from ".$table_Prefix."term  where publish = 1 and belong = '".$system_part."' ";

$term_res = mysql_query($sql);

$term_count = mysql_fetch_assoc($term_res);

?>


<li class="layui-form-item term">
    <label class="layui-form-label">所属分类：


    </label>
    <div class="layui-input-block">
        <?php
        if($term_count['term_count'] == 0){
            ?>
            <a href="../detail/term-add.php?sys_part=<?php echo $system_part;?>" class="threeDbtn layui-btn ">添加分类</a>
            <?php
        }
        else{
            ?>
            <ul style="float:left;"><? include("mod-term-select.php");?></ul>
            <em class="explain">(选择对应的分类，可多选。)</em>
            <?php
        }
        ?>
    </div>
</li>

<?php
$sql = "select count(*) as brand_count from ".$table_Prefix."term  where publish = 1 and belong = 'brand' ";

$brand_res = mysql_query($sql);

$brand_count = mysql_fetch_assoc($brand_res);

?>
<li class="layui-form-item brand">
    <label class="layui-form-label">所属品牌：


    </label>
    <div class="layui-input-block">
        <?php
        if($brand_count['brand_count'] == 0){
            ?>
            <a href="/controller/extender/brand/view/term-add.php?sys_part=brand" class="threeDbtn layui-btn ">添加品牌</a>
            <?php
        }
        else{
            ?>
            <ul style="float:left;"><? include("mod-brand-select.php");?></ul>
            <em class="explain">(选择对应的分类，可多选。)</em>
            <?php
        }
        ?>
    </div>
</li>


<li class="layui-form-item introduce">
    <label class="layui-form-label">简介：</label>
    <div class="layui-input-block">
        <textarea id="detail_introduce" cols="20" name="detail_introduce" style="width:800px;"></textarea>
    </div>

    <em class="explain">(填写本文的概述)</em>
</li>

<li class="layui-form-item introduce2" style="display:none">
    <label class="layui-form-label">简介2：</label>

    <div class="layui-input-block">
        <textarea id="detail_introduce2" cols="20" name="detail_introduce2" ></textarea>
    </div>
    <em class="explain">(填写本文的概述)</em>
</li>

<li class="layui-form-item introduce3" style="display:none">
    <label class="layui-form-label">简介3：</label>

    <div class="layui-input-block">
        <textarea id="detail_introduce3" cols="20" name="detail_introduce3" ></textarea>
    </div>
    <em class="explain">(填写本文的概述)</em>
</li>










<li class="layui-form-item detail">
    <label class="layui-form-label">资料详情：</label>
    <div class="layui-input-block">
    <textarea name="detail_detail" style="width:1000px;height:400px;visibility:hidden;">
        <? echo  $detail['detail'] ?>
    </textarea>
    </div>
    <em class="explain">(填写详细页面文字、图片等主体内容)</em>
</li>




<div class="layui-form-item detail2" style="display:none">
    <label class="layui-form-label"><?php echo $$detail_name2 ? $$detail_name2 : ''?>资料详情<?php echo $$detail_name2 ? '' : '2'?>：</label>
    <div class="layui-input-block">
    <textarea name="detail_detail2" style="width:800px;height:400px;visibility:hidden;">
    </textarea></div><em class="explain">(填写<?php echo $$detail_name2 ? $$detail_name2 : ''?>详细页面文字、图片等主体内容)</em>
</div>


<div class="layui-form-item detail3" style="display:none">
    <label class="layui-form-label"><?php echo $$detail_name3 ? $$detail_name3 : ''?>资料详情<?php echo $$detail_name2 ? '' : '3'?>：</label>
    <div class="layui-input-block">
    <textarea name="detail_detail3" style="width:800px;height:400px;visibility:hidden;">
    </textarea></div><em class="explain">(填写<?php echo $$detail_name3 ? $$detail_name3 : ''?>详细页面文字、图片等主体内容)</em>
</div>







<br class="clearfloat"/>

